package com.my.company.base.service;

import java.util.List;


public interface BaseService<T> {
	public T getEntity(Integer id);
	public void saveEntity(T t);
	public void updateEntity(T t);
	public void deleteEntity(T t);
	public void saveOrUpdateEntity(T t);
	public void batchEntityByHQL(String hql,Object...objects);
	public T getEntity(String id);
	public T loadEntity(String id);
	public List<T> findEntityByHQL(String hql,Object...objects);
	public List<T> getListForPage(final String hql, final int offset,
		    final int length);
}
